package com.gugee.tiktok.data.consumer.keyword.config;

import com.alibaba.nacos.api.config.annotation.NacosValue;
import lombok.Getter;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: luolifeng
 * Date: 2020-10-27 16:46
 */
@Configuration
@Getter
public class KeywordAppConfig {
    /**
     * 关键词分析连接池大小
     */
    @Value(value="${tiktok.data.threadpools.keyword.corePollSize:100}")
    int keywordPollSize;

    /**
     * 日志打印时间要求
     */
    @NacosValue(value="${tiktok.data.keyword.logTime.debug.limit}", autoRefreshed = true)
    long debugTimeLimit;

    @NacosValue(value="${tiktok.data.keyword.accept.minTime.limit:1440}", autoRefreshed = true)
    long acceptMsgTimeMinRange;
    /**
     * 分词的评论批次大小，默认每200个评论做一次分词
     */
    @NacosValue(value="${tiktok.data.keyword.ai.comments.num:200}", autoRefreshed = true)
    int analysisKeywordComments;
}
